package io.louis.vmq;

import java.io.BufferedReader;
import java.io.IOException;
import java.io.InputStream;
import java.io.InputStreamReader;
import java.net.Socket;

public class SocketClient {
    public static void main(String[] args) {
        try {
            Socket socket = new Socket("127.0.0.1",8007);
            InputStream is = socket.getInputStream();

            System.out.println(is);
            BufferedReader br = new BufferedReader(new InputStreamReader(is));
            System.out.println(br);
            String info = null;
            while ((info = br.readLine()) != null){
                System.out.println(info);
            }
        } catch (IOException e) {
            e.printStackTrace();
        }
    }
}
